package com.jyxd.web.data.basic;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;


@Data
@TableName("bed_reservation")
@ApiModel(description = "bed_reservation")
public class BedReservation  extends Model implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @Id
    private String id;

    @ApiModelProperty(value = "患者姓名")
    @TableField("patient_name")
    private String patientName;

    @ApiModelProperty(value = "当前科室")
    @TableField("current_department")
    private String currentDepartment;

    @ApiModelProperty(value = "预约床位号")
    @TableField("reservation_bed")
    private String reservationBed;

    @ApiModelProperty(value = "预约时间")
    @TableField("reservation_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date reservationTime;

    @ApiModelProperty(value = "预约人")
    @TableField("reservation_name")
    private String reservationName;

    @ApiModelProperty(value = "预约备注")
    @TableField("reservation_notes")
    private String reservationNotes;

    @ApiModelProperty(value = "状态:(1：确认、2:未确认)")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "确认人")
    @TableField("confirm_name")
    private String confirmName;

    @ApiModelProperty(value = "确认备注")
    @TableField("confirm_notes")
    private String confirmNotes;

    @ApiModelProperty(value = "确认时间")
    @TableField("confirm_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date confirmTime;

    @ApiModelProperty(value = "确认床号")
    @TableField("confirm_bed")
    private String confirmBed;
    
	
    @TableField("tenant_id")
    private String tenantId;

    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @JsonIgnore
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "性别 1:男  2:女")
    @TableField("sex")
    private String sex;

    @ApiModelProperty(value = "年龄")
    @TableField("age")
    private String age;

    @ApiModelProperty(value = "诊断内容")
    @TableField("diagnosis_content")
    private String diagnosisContent;

    @ApiModelProperty(value = "预约科室")
    @TableField("reservation_dep")
    private String reservationDep;

}
